package com.bamboo.tool.util;


import cn.hutool.core.text.CharPool;
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.core.util.StrUtil;
import com.bamboo.tool.enums.RequestMethod;
import com.intellij.psi.PsiNameValuePair;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class StringUtil extends StrUtil {


    public static String urlParse(String url) {
        boolean startWith = CharSequenceUtil.startWith(url, "/");
        if (!startWith) {
            url = "/" + url;
        }
        url = CharSequenceUtil.removeSuffix(url, "/");
        return url;
    }
}
